package cn.sykj.car.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 字典表
 * </p>
 *
 * @author yixu
 * @since 2018-12-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = false)
@TableName("dictionary")
@ApiModel(value="Dictionary对象", description="字典表")
public class Dictionary extends Model<Dictionary> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "字典组")
    private String dictGroup;

    @ApiModelProperty(value = "字典码")
    private String code;

    @ApiModelProperty(value = "字典值")
    private String dictValue;

    @ApiModelProperty(value = "排序")
    private Long seq;

    private String pattern1;

    private String pattern2;

    private String pattern3;

    private String remark;

    private Date createTime;

    private Date updateTime;

    private String createUser;

    private String updateUser;

    public static final String ID = "id";

    public static final String DICT_GROUP = "dict_group";

    public static final String CODE = "code";

    public static final String DICT_VALUE = "dict_value";

    public static final String SEQ = "seq";

    public static final String PATTERN1 = "pattern1";

    public static final String PATTERN2 = "pattern2";

    public static final String PATTERN3 = "pattern3";

    public static final String REMARK = "remark";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String CREATE_USER = "create_user";

    public static final String UPDATE_USER = "update_user";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
